package top.yaofengqiao.springcloudsimple.auth.biz.trigger.http.dto;

import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author yfq
 * @date 2024/6/11 13:31
 * @description 三方授权登录
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
public class Oauth2LoginDTO extends LoginDTO {
    // 授权类型(alipay、wx)
    @NotNull(message = "授权类型不能为空")
    private Integer type;

    @NotBlank(message = "授权码不能为空")
    private String code;
}
